package cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.other;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.other.OtherInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OtherInfoDB {
    private int otherId;
    private String otherName;
    private long idCardNum;
    private int professionalId;
    private int userId;

    public OtherInfoDB(OtherInfo otherInfo) {
        this.otherName = otherInfo.getOtherName();
        this.idCardNum = otherInfo.getIdCardNum();
        this.userId = otherInfo.getUserId();
    }
}
